package com.alpaak.consumer.xml;

import com.alpaak.service.AnnotationService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author alpaak
 * @des: 测试接口
 * @date 2020/4/6 17:33
 */

@RestController
public class XmlController {
    @Reference
    private AnnotationService xmlService;

    @GetMapping("/xmlTest")
    public String testXml(String name) {
        return xmlService.sayHello(name);
    }
}
